package com.itlaobing.relation.entity;

import java.io.Serializable;
import java.util.Set;

public class Course implements Serializable {
    private Integer id;
    private String name;
    private float credit;
    // 维护从 Course 到 Student 的 一对多 关联关系
    private Set<Student> students; // 当前课程有哪些学生选修

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getCredit() {
        return credit;
    }

    public void setCredit(float credit) {
        this.credit = credit;
    }

    public Set<Student> getStudents() {
        return students;
    }

    public void setStudents(Set<Student> students) {
        this.students = students;
    }
}
